<template>
    <div class="loginbutton" @click="Submit">
        {{text}}
    </div>
</template>

<script>
export default {
    props:[
        'text'
    ],
    methods:{
        Submit(){
            console.log('child')
            this.$emit('submit')
        }
    }
}
</script>

<style lang="less" scoped>

.loginbutton{
    color: white;
    font-size: 1.18rem;
    height: 3.8rem;
    background-color: #FF9DB7;
    text-align: center;
    line-height: 3.8rem;
    border-radius: 2.8rem;
    width: 95vw;
    margin: 0 auto;
}
</style>